<html>
<head>
    <title>双预防系统</title>
    <link rel="stylesheet" href="../../../assets/bundle.element.css">
    <link rel="stylesheet" href="../../../style.css">

    <style>
        body {
            background: #F0F2F6;
        }

        .main-head {
            background: #fff;
            padding-left: 10px;
            padding-top: 10px;
            margin-bottom: 0px;
            border: solid 1px #fff;
        }

        .chart-outer {
            height: 200px;
        }

        .inputW {
            width: 150px;
        }

        .itemW {
            width: 200px;
        }

        .formLabelWidth {
            width: 100px;
        }

        input {
            background: white;
            BORDER-TOP-STYLE: none;
            BORDER-RIGHT-STYLE: none;
            BORDER-LEFT-STYLE: none;
            /*BORDER-BOTTOM-STYLE: solid*/
        }
    </style>
</head>
<body>
<div class="page" id="page-monitor">
    <div class="page-title">学校安全基本情况统计表</div>
    <div class="page-main">
        <el-row>
            <el-col :span="24">
                <div class="main-head">
                    <el-button type="primary" @click="addBtn">填报基本信息情况</el-button>
                </div>
                <div class="main-head" style="margin-top: 20px">
                    <table class="cTable vLine" cellspacing="0" cellpadding="0">
                        <tbody>
                        <tr>
                            <td>
                                <hr/>
                                <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                    <tbody>
                                    <tr>
                                        <td colspan="5" align="center" title="学校安全组织机构"><b>学校安全组织机构</b></td>
                                    </tr>
                                    <tr>
                                        <td title="校长">校长</td>
                                        <td title="联系电话">联系电话</td>
                                        <td title="主管副校长">主管副校长</td>
                                        <td title="联系电话">联系电话</td>
                                        <td title="平安办主任">平安办主任</td>
                                    </tr>
                                    <tr>
                                        <td title="">
                                            <input type="text" name="attachinfo.leader" value="" id="leader1"
                                                   style="width:105px;" autocomplete="off"
                                                   v-model="tableData.onePrincipal" disabled="disabled">
                                        </td>
                                        <td title="">
                                            <input type="text" name="attachinfo.leaderphone" value=""
                                                   id="leaderphone1" style="width:105px;" autocomplete="off"
                                                   v-model="tableData.onePhone" disabled="disabled">
                                        </td>
                                        <td title="">
                                            <input type="text" name="attachinfo.vicepresident" value=""
                                                   id="vicepresident1" style="width:105px;" autocomplete="off"
                                                   v-model="tableData.oneVicePrincipal" disabled="disabled">
                                        </td>
                                        <td title="">
                                            <input type="text" name="attachinfo.presidentphone" value=""
                                                   id="presidentphone1" style="width:105px;" autocomplete="off"
                                                   v-model="tableData.oneVicePhone" disabled="disabled">
                                        </td>
                                        <td title="">
                                            <input type="text" name="attachinfo.sos_director" value=""
                                                   id="sos_director1" style="width:105px;" autocomplete="off"
                                                   v-model="tableData.oneSafeOfficer" disabled="disabled">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="center" title="平安办人数">平安办人数</td>
                                        <td colspan="2" title="班级安全员">班级安全员</td>
                                        <td title="每班安全员">每班安全员</td>
                                    </tr>
                                    <tr>
                                        <td title="专人人">专人
                                            <input type="text" name="attachinfo.sos_fulltimenumber" value=""
                                                   id="sos_fulltimenumber1" style="width:105px;" autocomplete="off"
                                                   v-model="tableData.oneSafeMajorNumber" disabled="disabled">人
                                        </td>
                                        <td title="兼职人">兼职
                                            <input type="text" name="attachinfo.sos_parttimenumber" value=""
                                                   id="sos_parttimenumber1" style="width:105px;" autocomplete="off"
                                                   v-model="tableData.oneSafeAndNumber" disabled="disabled">人
                                        </td>
                                        <td colspan="2" title=""><span class="star"></span>
                                            <input type="text" name="attachinfo.sos_classtotalnum" value=""
                                                   id="sos_classtotalnum1" style="width:105px;" autocomplete="off"
                                                   v-model="tableData.oneSafeClassNumber" disabled="disabled"></td>
                                        <td title=""><span class="star"></span>
                                            <input type="text" name="attachinfo.sos_classnum" value=""
                                                   id="sos_classnum1"
                                                   style="width:105px;" autocomplete="off"
                                                   v-model="tableData.oneSafeEachClassNumber" disabled="disabled"></td>
                                    </tr>
                                    </tbody>
                                </table>
                                <hr/>
                                <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                    <tbody>
                                    <tr>
                                        <td colspan="5" align="center" title="学校人数情况"><b>学校人数情况</b></td>
                                    </tr>
                                    <tr>
                                        <td title="教职工人">教职工
                                            <input type="text" name="attachinfo.staffnum" value="" id="staffnum1"
                                                   style="width:105px;" autocomplete="off"
                                                   v-model="tableData.twoTeacherNumber" disabled="disabled">人
                                        </td>
                                        <td colspan="2" title="学生人">学生
                                            <input type="text" name="attachinfo.studentsnum" value="" id="studentsnum1"
                                                   style="width:105px;" autocomplete="off"
                                                   v-model="tableData.twoStudentNumber" disabled="disabled">人
                                        </td>
                                        <td colspan="2" title="班级个">班级
                                            <input type="text" name="attachinfo.classnum" value="" id="classnum1"
                                                   style="width:105px;" autocomplete="off"
                                                   v-model="tableData.twoClassNumber" disabled="disabled">个
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                                <hr/>
                                <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                    <tbody>
                                    <tr>
                                        <td colspan="5" align="center" title="消防器材配备情况"><b>消防器材配备情况</b></td>
                                    </tr>
                                    <tr>
                                        <td title="消防栓个">消防栓
                                            <input type="text" name="attachinfo.xfs_num" value="" id="xfs_num1"
                                                   style="width:105px;" autocomplete="off"
                                                   v-model="tableData.threeFireHydrant" disabled="disabled">个
                                        </td>
                                        <td title="灭火器个">灭火器
                                            <input type="text" name="attachinfo.mhq_num" value="" id="mhq_num1"
                                                   style="width:105px;" autocomplete="off"
                                                   v-model="tableData.threeFireExtinguisher" disabled="disabled">个
                                        </td>
                                        <td title="应急灯个">应急灯
                                            <input type="text" name="attachinfo.yjd_num" value="" id="yjd_num1"
                                                   style="width:105px;" autocomplete="off"
                                                   v-model="tableData.threeFireLamp" disabled="disabled">个
                                        </td>
                                        <td title="疏散标志个">疏散标志
                                            <input type="text" name="attachinfo.ssbz_num" value="" id="ssbz_num1"
                                                   style="width:105px;" autocomplete="off"
                                                   v-model="tableData.threeFireTitle" disabled="disabled">个
                                        </td>
                                        <td title="其他">其他<input type="text" name="attachinfo.xf_others_num" value=""
                                                                id="apaper_attachinfo_xf_others_num"
                                                                style="width:105px;"
                                                                autocomplete="off" v-model="tableData.threeFireOther"
                                                                disabled="disabled">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                                <hr/>
                                <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                    <tbody>
                                    <tr>
                                        <td colspan="5" align="center" title="保安配备情况"><b>保安配备情况</b></td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" title="保安公司人(未达标)，持证人">保安公司
                                            <!--onblur="addGuardTotal();"-->
                                            <input type="text" name="attachinfo.guard_company_num" value=""
                                                   id="guard_company_num1" style="width:50px;"
                                                   autocomplete="off" v-model="tableData.fourOnQualified"
                                                   disabled="disabled">人 (<font
                                                    color="red"><a
                                            >未达标</a></font>)，持证
                                            <!--onclick="showStandard();"-->
                                            <input type="text" name="attachinfo.guard_card_num" value=""
                                                   id="guard_card_num1"
                                                   style="width:50px;" autocomplete="off"
                                                   v-model="tableData.fourQualified" disabled="disabled">人
                                            <!--onblur="checkcompany();"-->
                                        </td>
                                        <td title="自聘人">自聘
                                            <input type="text" name="attachinfo.guard_invite_num" value=""
                                                   id="guard_invite_num1" style="width:50px;" onblur="addGuardTotal();"
                                                   autocomplete="off" v-model="tableData.fourEmploy"
                                                   disabled="disabled">人
                                        </td>
                                        <td title="共人(保安公司人数+自聘人数)">共<span class="star"></span>
                                            <input type="text" name="attachinfo.guard_totalnum" value=""
                                                   readonly="readonly"
                                                   id="guard_totalnum1"
                                                   autocomplete="off" v-model="tableData.fourNumber"
                                                   disabled="disabled">人(保安公司人数+自聘人数)
                                            <!--style="width:50px;background-color:#EBEBEB"-->
                                        </td>

                                    </tr>
                                    </tbody>
                                </table>
                                <hr/>
                                <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                    <tbody>
                                    <tr>
                                        <td colspan="5" align="center" title="保安防卫器材配备情况"><b>保安防卫器材配备情况</b></td>
                                    </tr>
                                    <tr>
                                        <td title="警棒">警棒</td>
                                        <td title="强光手电">强光手电</td>
                                        <td title="警用催泪剂">警用催泪剂</td>
                                        <td title="钢叉">钢叉</td>
                                        <td title="防暴头盔">防暴头盔</td>
                                    </tr>
                                    <tr>
                                        <td title="支"><input type="text" name="attachinfo.jb_num" value="" id="jb_num1"
                                                             style="width:70px;" autocomplete="off"
                                                             v-model="tableData.fivePoliceStick" disabled="disabled">支
                                        </td>
                                        <td title="支"><input type="text" name="attachinfo.qgsd_num" value=""
                                                             id="qgsd_num1"
                                                             style="width:70px;" autocomplete="off"
                                                             v-model="tableData.fiveFlashlight" disabled="disabled">支
                                        </td>
                                        <td title="瓶"><input type="text" name="attachinfo.clj_num" value=""
                                                             id="clj_num1"
                                                             style="width:70px;" autocomplete="off"
                                                             v-model="tableData.fiveTearAgent" disabled="disabled">瓶
                                        </td>
                                        <td title="把"><input type="text" name="attachinfo.gc_num" value="" id="gc_num1"
                                                             style="width:70px;" autocomplete="off"
                                                             v-model="tableData.fiveSteelFork" disabled="disabled">把
                                        </td>
                                        <td title="顶"><input type="text" name="attachinfo.fbtk_num" value=""
                                                             id="fbtk_num1"
                                                             style="width:70px;" autocomplete="off"
                                                             v-model="tableData.fiveHelmet" disabled="disabled">顶
                                        </td>
                                    </tr>
                                    <tr>
                                        <td title="防护盾牌">防护盾牌</td>
                                        <td title="防刺背心">防刺背心</td>
                                        <td title="防割手套">防割手套</td>
                                        <td title="自卫喷雾剂">自卫喷雾剂</td>
                                        <td title="其他">其他</td>
                                    </tr>
                                    <tr>
                                        <td title="副"><input type="text" name="attachinfo.fhdp_num" value=""
                                                             id="fhdp_num1"
                                                             style="width:70px;" autocomplete="off"
                                                             v-model="tableData.fiveShield" disabled="disabled">副
                                        </td>
                                        <td title="套"><input type="text" name="attachinfo.fcbx_num" value=""
                                                             id="fcbx_num1"
                                                             style="width:70px;" autocomplete="off"
                                                             v-model="tableData.fiveVest" disabled="disabled">套
                                        </td>
                                        <td title="副"><input type="text" name="attachinfo.fgst_num" value=""
                                                             id="fgst_num1"
                                                             style="width:70px;" autocomplete="off"
                                                             v-model="tableData.fiveGlove" disabled="disabled">副
                                        </td>
                                        <td title="支"><input type="text" name="attachinfo.zwpwj_num" value=""
                                                             id="zwpwj_num1"
                                                             style="width:70px;" autocomplete="off"
                                                             v-model="tableData.fiveSprays" disabled="disabled">支
                                        </td>
                                        <td title=""><input type="text" name="attachinfo.xfqc_others" value=""
                                                            id="apaper_attachinfo_xfqc_others" style="width:70px;"
                                                            autocomplete="off" v-model="tableData.fiveOther"
                                                            disabled="disabled"></td>
                                    </tr>
                                    </tbody>
                                </table>
                                <hr/>
                                <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                    <tbody>
                                    <tr>
                                        <td colspan="5" align="center" title="技防监控情况"><b>技防监控情况</b></td>
                                    </tr>
                                    <tr>
                                        <td title="球机">球机</td>
                                        <td title="枪机">枪机</td>
                                        <td title="红外探头">红外探头</td>
                                        <td title="是否110联网">是否110联网</td>
                                        <td title="其他">其他</td>
                                    </tr>
                                    <tr>
                                        <td title="个"><input type="text" name="attachinfo.camera_ball" value=""
                                                             id="camera_ball1" style="width:70px;" autocomplete="off"
                                                             v-model="tableData.sixBall" disabled="disabled">个
                                        </td>
                                        <td title="个"><input type="text" name="attachinfo.camera_long" value=""
                                                             id="camera_long1" style="width:70px;" autocomplete="off"
                                                             v-model="tableData.sixGun" disabled="disabled">个
                                        </td>
                                        <td title="个"><input type="text" name="attachinfo.camera_infrared" value=""
                                                             id="camera_infrared1" style="width:70px;"
                                                             autocomplete="off"
                                                             v-model="tableData.sixProbe" disabled="disabled">个
                                        </td>
                                        <td><select cssstyle="width:70px;" name="attachinfo.camera_conn110"
                                                    v-model="tableData.sixIs110" disabled="disabled">
                                            <option value="1">是</option>
                                            <option value="0" selected="true">否</option>
                                        </select></td>
                                        <td title=""><input type="text" name="attachinfo.camera_others" value=""
                                                            id="apaper_attachinfo_camera_others" style="width:70px;"
                                                            autocomplete="off" v-model="tableData.sixOther"
                                                            disabled="disabled"></td>
                                    </tr>
                                    </tbody>
                                </table>
                                <hr/>
                                <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                    <tbody>
                                    <tr>
                                        <td colspan="5" align="center" title="安全教育课情况"><b>安全教育课情况</b></td>
                                    </tr>
                                    <tr>
                                        <td title="是否开设">是否开设</td>
                                        <td title="每月几节">每月几节</td>
                                        <td title="教材版本">教材版本</td>
                                        <td title="教材数量">教材数量</td>
                                        <td title="专兼职教师人数">专兼职教师人数</td>
                                    </tr>
                                    <tr>
                                        <td><select cssstyle="width:105px;" name="attachinfo.edu_isopen"
                                                    v-model="tableData.sevenIsUse" disabled="disabled">
                                            <option value="1">是</option>
                                            <option value="0" selected="true">否</option>

                                        </select></td>
                                        <td title=""><input type="text" name="attachinfo.edu_permonth" value=""
                                                            id="edu_permonth1" style="width:105px;" autocomplete="off"
                                                            v-model="tableData.sevenEachMonthAfewVerse"
                                                            disabled="disabled"></td>
                                        <td title=""><input type="text" name="attachinfo.edu_version" value=""
                                                            id="edu_version" style="width:105px;" autocomplete="off"
                                                            v-model="tableData.sevenBookVer" disabled="disabled"></td>
                                        <td title=""><input type="text" name="attachinfo.edu_num" value="" id="edu_num1"
                                                            style="width:105px;" autocomplete="off"
                                                            v-model="tableData.sevenBookNumber" disabled="disabled">
                                        </td>
                                        <td title=""><input type="text" name="attachinfo.edu_teachernum" value=""
                                                            id="edu_teachernum1" style="width:105px;" autocomplete="off"
                                                            v-model="tableData.sevenTeacher" disabled="disabled">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="5" align="center" title="年度疏散演练情况次"><b>年度疏散演练情况
                                            <input type="text" name="attachinfo.dring_num" value="" id="dring_num1"
                                                   style="width:50px;" autocomplete="off"
                                                   v-model="tableData.eightDrillNumber" disabled="disabled">次
                                        </b></td>
                                    </tr>
                                    <tr>

                                        <td title="1">1
                                            <el-date-picker
                                                    v-model="tableData.eightDrillTime1"
                                                    type="date"
                                                    value-format="yyyy-MM-dd"
                                                    placeholder="选择日期时间" disabled="disabled">
                                            </el-date-picker>
                                        </td>
                                        <td title="2">2
                                            <el-date-picker
                                                    v-model="tableData.eightDrillTime2"
                                                    type="date"
                                                    value-format="yyyy-MM-dd"
                                                    placeholder="选择日期时间" disabled="disabled">
                                            </el-date-picker>
                                        </td>
                                        <td title="3">3
                                            <el-date-picker
                                                    v-model="tableData.eightDrillTime3"
                                                    type="date"
                                                    value-format="yyyy-MM-dd"
                                                    placeholder="选择日期时间" disabled="disabled">
                                            </el-date-picker>
                                        </td>
                                        <td title="4">4
                                            <el-date-picker
                                                    v-model="tableData.eightDrillTime4"
                                                    type="date"
                                                    value-format="yyyy-MM-dd"
                                                    placeholder="选择日期时间" disabled="disabled">
                                            </el-date-picker>
                                        </td>
                                        <td title="5">5
                                            <el-date-picker
                                                    v-model="tableData.eightDrillTime5"
                                                    type="date"
                                                    value-format="yyyy-MM-dd"
                                                    placeholder="选择日期时间" disabled="disabled">
                                            </el-date-picker>
                                        </td>
                                        <!-- <td>6
                            <input style="width:105px" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"   type="text" name="attachinfo.dring_6"
                                value='' id="dring_6" />
                            </td> -->
                                    </tr>
                                    </tbody>
                                </table>
                                <hr/>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </el-col>
        </el-row>
        <el-row>

        </el-row>
        <el-dialog :title="editMod?'填写数据':'填写数据'" :visible.sync="dialogFormVisible" width="1500px">
            <div class="main-head" style="margin-top: 20px">
                <table class="cTable vLine" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr>
                        <td>
                            <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                <tbody>
                                <tr>
                                    <td colspan="5" align="center" title="学校安全组织机构"><b>学校安全组织机构</b></td>
                                </tr>
                                <tr>
                                    <td title="校长">校长</td>
                                    <td title="联系电话">联系电话</td>
                                    <td title="主管副校长">主管副校长</td>
                                    <td title="联系电话">联系电话</td>
                                    <td title="平安办主任">平安办主任</td>
                                </tr>
                                <tr>
                                    <td title="">
                                        <input type="text" name="attachinfo.leader" value="" id="leader1"
                                               style="width:105px;" autocomplete="off" v-model="param.onePrincipal">
                                    </td>
                                    <td title="">
                                        <input type="text" name="attachinfo.leaderphone" value=""
                                               id="leaderphone1" style="width:105px;" autocomplete="off"
                                               v-model="param.onePhone">
                                    </td>
                                    <td title="">
                                        <input type="text" name="attachinfo.vicepresident" value=""
                                               id="vicepresident1" style="width:105px;" autocomplete="off"
                                               v-model="param.oneVicePrincipal">
                                    </td>
                                    <td title="">
                                        <input type="text" name="attachinfo.presidentphone" value=""
                                               id="presidentphone1" style="width:105px;" autocomplete="off"
                                               v-model="param.oneVicePhone">
                                    </td>
                                    <td title="">
                                        <input type="text" name="attachinfo.sos_director" value=""
                                               id="sos_director1" style="width:105px;" autocomplete="off"
                                               v-model="param.oneSafeOfficer">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center" title="平安办人数">平安办人数</td>
                                    <td colspan="2" title="班级安全员">班级安全员</td>
                                    <td title="每班安全员">每班安全员</td>
                                </tr>
                                <tr>
                                    <td title="专人人">专人
                                        <input type="number" name="attachinfo.sos_fulltimenumber" value=""
                                               id="sos_fulltimenumber1" style="width:105px;" autocomplete="off"
                                               v-model="param.oneSafeMajorNumber">人
                                    </td>
                                    <td title="兼职人">兼职
                                        <input type="number" name="attachinfo.sos_parttimenumber" value=""
                                               id="sos_parttimenumber1" style="width:105px;" autocomplete="off"
                                               v-model="param.oneSafeAndNumber">人
                                    </td>
                                    <td colspan="2" title=""><span class="star"></span>
                                        <input type="text" name="attachinfo.sos_classtotalnum" value=""
                                               id="sos_classtotalnum1" style="width:105px;" autocomplete="off"
                                               v-model="param.oneSafeClassNumber"></td>
                                    <td title=""><span class="star"></span>
                                        <input type="text" name="attachinfo.sos_classnum" value="" id="sos_classnum1"
                                               style="width:105px;" autocomplete="off"
                                               v-model="param.oneSafeEachClassNumber"></td>
                                </tr>
                                </tbody>
                            </table>

                            <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                <tbody>
                                <tr>
                                    <td colspan="5" align="center" title="学校人数情况"><b>学校人数情况</b></td>
                                </tr>
                                <tr>
                                    <td title="教职工人">教职工
                                        <input type="number" name="attachinfo.staffnum" value="" id="staffnum1"
                                               style="width:105px;" autocomplete="off" v-model="param.twoTeacherNumber">人
                                    </td>
                                    <td colspan="2" title="学生人">学生
                                        <input type="number" name="attachinfo.studentsnum" value="" id="studentsnum1"
                                               style="width:105px;" autocomplete="off" v-model="param.twoStudentNumber">人
                                    </td>
                                    <td colspan="2" title="班级个">班级
                                        <input type="text" name="attachinfo.classnum" value="" id="classnum1"
                                               style="width:105px;" autocomplete="off" v-model="param.twoClassNumber">个
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                <tbody>
                                <tr>
                                    <td colspan="5" align="center" title="消防器材配备情况"><b>消防器材配备情况</b></td>
                                </tr>
                                <tr>
                                    <td title="消防栓个">消防栓
                                        <input type="text" name="attachinfo.xfs_num" value="" id="xfs_num1"
                                               style="width:105px;" autocomplete="off" v-model="param.threeFireHydrant">个
                                    </td>
                                    <td title="灭火器个">灭火器
                                        <input type="text" name="attachinfo.mhq_num" value="" id="mhq_num1"
                                               style="width:105px;" autocomplete="off"
                                               v-model="param.threeFireExtinguisher">个
                                    </td>
                                    <td title="应急灯个">应急灯
                                        <input type="text" name="attachinfo.yjd_num" value="" id="yjd_num1"
                                               style="width:105px;" autocomplete="off" v-model="param.threeFireLamp">个
                                    </td>
                                    <td title="疏散标志个">疏散标志
                                        <input type="text" name="attachinfo.ssbz_num" value="" id="ssbz_num1"
                                               style="width:105px;" autocomplete="off" v-model="param.threeFireTitle">个
                                    </td>
                                    <td title="其他">其他<input type="text" name="attachinfo.xf_others_num" value=""
                                                            id="apaper_attachinfo_xf_others_num" style="width:105px;"
                                                            autocomplete="off" v-model="param.threeFireOther"></td>
                                </tr>
                                </tbody>
                            </table>
                            <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                <tbody>
                                <tr>
                                    <td colspan="5" align="center" title="保安配备情况"><b>保安配备情况</b></td>
                                </tr>
                                <tr>
                                    <td colspan="3" title="保安公司人(未达标)，持证人">保安公司
                                        <!--onblur="addGuardTotal();"-->
                                        <input type="number" name="attachinfo.guard_company_num" value=""
                                               id="guard_company_num1" style="width:50px;"
                                               autocomplete="off" v-model="param.fourOnQualified">人 (<font
                                                color="red"><a
                                        >未达标</a></font>)，持证
                                        <!--onclick="showStandard();"-->
                                        <input type="number" name="attachinfo.guard_card_num" value=""
                                               id="guard_card_num1"
                                               style="width:50px;" autocomplete="off"
                                               v-model="param.fourQualified">人
                                        <!--onblur="checkcompany();"-->
                                    </td>
                                    <td title="自聘人">自聘
                                        <input type="number" name="attachinfo.guard_invite_num" value=""
                                               id="guard_invite_num1" style="width:50px;"
                                               autocomplete="off" v-model="param.fourEmploy">人
                                    </td>
                                    <td title="共人(保安公司人数+自聘人数)">共<span class="star"></span>
                                        <!--<input type="text" name="attachinfo.guard_totalnum" value="" readonly="readonly"-->
                                        <!--id="guard_totalnum1"-->
                                        <!--autocomplete="off" v-model="param.fourNumber">-->
                                        <input type="number" name="attachinfo.guard_invite_num" value=""
                                               id="guard_invite_num1" style="width:50px;"
                                               autocomplete="off" v-model="param.fourNumber">人(保安公司人数+自聘人数)
                                        <!--style="width:50px;background-color:#EBEBEB"-->
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                <tbody>
                                <tr>
                                    <td colspan="5" align="center" title="保安防卫器材配备情况"><b>保安防卫器材配备情况</b></td>
                                </tr>
                                <tr>
                                    <td title="警棒">警棒</td>
                                    <td title="强光手电">强光手电</td>
                                    <td title="警用催泪剂">警用催泪剂</td>
                                    <td title="钢叉">钢叉</td>
                                    <td title="防暴头盔">防暴头盔</td>
                                </tr>
                                <tr>
                                    <td title="支"><input type="text" name="attachinfo.jb_num" value="" id="jb_num1"
                                                         style="width:70px;" autocomplete="off"
                                                         v-model="param.fivePoliceStick">支
                                    </td>
                                    <td title="支"><input type="text" name="attachinfo.qgsd_num" value="" id="qgsd_num1"
                                                         style="width:70px;" autocomplete="off"
                                                         v-model="param.fiveFlashlight">支
                                    </td>
                                    <td title="瓶"><input type="text" name="attachinfo.clj_num" value="" id="clj_num1"
                                                         style="width:70px;" autocomplete="off"
                                                         v-model="param.fiveTearAgent">瓶
                                    </td>
                                    <td title="把"><input type="text" name="attachinfo.gc_num" value="" id="gc_num1"
                                                         style="width:70px;" autocomplete="off"
                                                         v-model="param.fiveSteelFork">把
                                    </td>
                                    <td title="顶"><input type="text" name="attachinfo.fbtk_num" value="" id="fbtk_num1"
                                                         style="width:70px;" autocomplete="off"
                                                         v-model="param.fiveHelmet">顶
                                    </td>
                                </tr>
                                <tr>
                                    <td title="防护盾牌">防护盾牌</td>
                                    <td title="防刺背心">防刺背心</td>
                                    <td title="防割手套">防割手套</td>
                                    <td title="自卫喷雾剂">自卫喷雾剂</td>
                                    <td title="其他">其他</td>
                                </tr>
                                <tr>
                                    <td title="副"><input type="text" name="attachinfo.fhdp_num" value="" id="fhdp_num1"
                                                         style="width:70px;" autocomplete="off"
                                                         v-model="param.fiveShield">副
                                    </td>
                                    <td title="套"><input type="text" name="attachinfo.fcbx_num" value="" id="fcbx_num1"
                                                         style="width:70px;" autocomplete="off"
                                                         v-model="param.fiveVest">套
                                    </td>
                                    <td title="副"><input type="text" name="attachinfo.fgst_num" value="" id="fgst_num1"
                                                         style="width:70px;" autocomplete="off"
                                                         v-model="param.fiveGlove">副
                                    </td>
                                    <td title="支"><input type="text" name="attachinfo.zwpwj_num" value=""
                                                         id="zwpwj_num1"
                                                         style="width:70px;" autocomplete="off"
                                                         v-model="param.fiveSprays">支
                                    </td>
                                    <td title=""><input type="text" name="attachinfo.xfqc_others" value=""
                                                        id="apaper_attachinfo_xfqc_others" style="width:70px;"
                                                        autocomplete="off" v-model="param.fiveOther"></td>
                                </tr>
                                </tbody>
                            </table>
                            <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                <tbody>
                                <tr>
                                    <td colspan="5" align="center" title="技防监控情况"><b>技防监控情况</b></td>
                                </tr>
                                <tr>
                                    <td title="球机">球机</td>
                                    <td title="枪机">枪机</td>
                                    <td title="红外探头">红外探头</td>
                                    <td title="是否110联网">是否110联网</td>
                                    <td title="其他">其他</td>
                                </tr>
                                <tr>
                                    <td title="个"><input type="text" name="attachinfo.camera_ball" value=""
                                                         id="camera_ball1" style="width:70px;" autocomplete="off"
                                                         v-model="param.sixBall">个
                                    </td>
                                    <td title="个"><input type="text" name="attachinfo.camera_long" value=""
                                                         id="camera_long1" style="width:70px;" autocomplete="off"
                                                         v-model="param.sixGun">个
                                    </td>
                                    <td title="个"><input type="text" name="attachinfo.camera_infrared" value=""
                                                         id="camera_infrared1" style="width:70px;" autocomplete="off"
                                                         v-model="param.sixProbe">个
                                    </td>
                                    <td><select cssstyle="width:70px;" name="attachinfo.camera_conn110"
                                                v-model="param.sixIs110">
                                        <option value="1">是</option>
                                        <option value="0" selected="true">否</option>
                                    </select></td>
                                    <td title=""><input type="text" name="attachinfo.camera_others" value=""
                                                        id="apaper_attachinfo_camera_others" style="width:70px;"
                                                        autocomplete="off" v-model="param.sixOther"></td>
                                </tr>
                                </tbody>
                            </table>
                            <table class="cTable vLine" cellpadding="0" cellspacing="0">
                                <tbody>
                                <tr>
                                    <td colspan="5" align="center" title="安全教育课情况"><b>安全教育课情况</b></td>
                                </tr>
                                <tr>
                                    <td title="是否开设">是否开设</td>
                                    <td title="每月几节">每月几节</td>
                                    <td title="教材版本">教材版本</td>
                                    <td title="教材数量">教材数量</td>
                                    <td title="专兼职教师人数">专兼职教师人数</td>
                                </tr>
                                <tr>
                                    <td><select cssstyle="width:105px;" name="attachinfo.edu_isopen"
                                                v-model="param.sevenIsUse">
                                        <option value="1">是</option>
                                        <option value="0" selected="true">否</option>

                                    </select></td>
                                    <td title=""><input type="text" name="attachinfo.edu_permonth" value=""
                                                        id="edu_permonth1" style="width:105px;" autocomplete="off"
                                                        v-model="param.sevenEachMonthAfewVerse"></td>
                                    <td title=""><input type="text" name="attachinfo.edu_version" value=""
                                                        id="edu_version" style="width:105px;" autocomplete="off"
                                                        v-model="param.sevenBookVer"></td>
                                    <td title=""><input type="text" name="attachinfo.edu_num" value="" id="edu_num1"
                                                        style="width:105px;" autocomplete="off"
                                                        v-model="param.sevenBookNumber"></td>
                                    <td title=""><input type="text" name="attachinfo.edu_teachernum" value=""
                                                        id="edu_teachernum1" style="width:105px;" autocomplete="off"
                                                        v-model="param.sevenTeacher">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5" align="center" title="年度疏散演练情况次"><b>年度疏散演练情况
                                        <input type="text" name="attachinfo.dring_num" value="" id="dring_num1"
                                               style="width:50px;" autocomplete="off" v-model="param.eightDrillNumber">次
                                    </b></td>
                                </tr>
                                <tr>

                                    <td title="1">1
                                        <el-date-picker
                                                v-model="param.eightDrillTime1"
                                                type="date"
                                                value-format="yyyy-MM-dd"
                                                placeholder="选择日期时间">
                                        </el-date-picker>
                                    </td>
                                    <td title="2">2
                                        <el-date-picker
                                                v-model="param.eightDrillTime2"
                                                type="date"
                                                value-format="yyyy-MM-dd"
                                                placeholder="选择日期时间">
                                        </el-date-picker>
                                    </td>
                                    <td title="3">3
                                        <el-date-picker
                                                v-model="param.eightDrillTime3"
                                                type="date"
                                                value-format="yyyy-MM-dd"
                                                placeholder="选择日期时间">
                                        </el-date-picker>
                                    </td>
                                    <td title="4">4
                                        <el-date-picker
                                                v-model="param.eightDrillTime4"
                                                type="date"
                                                value-format="yyyy-MM-dd"
                                                placeholder="选择日期时间">
                                        </el-date-picker>
                                    </td>
                                    <td title="5">5
                                        <el-date-picker
                                                v-model="param.eightDrillTime5"
                                                type="date"
                                                value-format="yyyy-MM-dd"
                                                placeholder="选择日期时间">
                                        </el-date-picker>
                                    </td>
                                    <!-- <td>6
                        <input style="width:105px" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"   type="text" name="attachinfo.dring_6"
                            value='' id="dring_6" />
                        </td> -->
                                </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div slot="footer" class="dialog-footer">
                <el-button @click="dialogFormVisible = false">取 消</el-button>
                <el-button type="primary" @click="submitClick">确 定</el-button>
            </div>
        </el-dialog>


        <el-dialog :title="'新增检测记录'" :visible.sync="dialogcheckVisible">
            <el-form :model="checkparam" ref="formName" :inline="true" style="margin-left: 55px">
                <el-form-item>
                    <el-form-item label="检测结果" :label-width="130" :rules="[
                             {required:true,message:'检测结果!',trigger:'blur'}
                            ]">
                        <el-input v-model="checkparam.checkResult" autocomplete="off" class="itemW"
                                  prop="checkResult" type="textarea" rows="3"></el-input>
                    </el-form-item>
                </el-form-item>

                <el-form-item>
                    <el-form-item label="检测日期" :label-width="130" :rules="[
                             {required:true,message:'检测日期!',trigger:'blur'}
                            ]">
                        <el-date-picker type="date" value-format="yyyy-MM-dd" v-model="checkparam.checkTime"
                                        placeholder="日期"
                                        style="width:200px"></el-date-picker>
                    </el-form-item>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click="dialogcheckVisible = false">取 消</el-button>
                <el-button type="primary" @click="submitCheck">确 定</el-button>
            </div>
        </el-dialog>

        <el-dialog :title="'检测记录'" :visible.sync="dialogcheckdataVisible">
            <el-table :data="checkDatalist" height="360" :stripe="true" :border="true" size="mini" style="width: 100%">
                <el-table-column type="index" label="序号" width="50" align="center"></el-table-column>
                <el-table-column prop="checkResult" label="检测结果"></el-table-column>
                <el-table-column prop="checkTime" label="检测时间">
                    <template slot-scope="scope">
                        <el-tag size="medium">{{scope.row.checkTime.replace("T"," ").substr(0,10)}}</el-tag>
                    </template>
                </el-table-column>
            </el-table>
            <div class="page-footer">
                <el-pagination background layout="prev, pager, next" :pagesize="checkpagesize" :total="checktotalCount"
                               :current-page.sync="checkpageno" @current-change="onCheckChangePage">
                </el-pagination>
            </div>
            <!--            <div slot="footer" class="dialog-footer">-->
            <!--                <el-button @click="dialogcheckdataVisible = false">确定</el-button>-->
            <!--                &lt;!&ndash;                <el-button type="primary" @click="submitCheck">确定</el-button>&ndash;&gt;-->
            <!--            </div>-->
        </el-dialog>
    </div>
</div>
<script type='text/javascript' src='../../../assets/bundle.js' charset='utf-8'></script>
<script type='text/javascript' src='../../../assets/jquery-1.11.2.min.js' charset='utf-8'></script>
<script type='text/javascript' src='../../../assets/echarts.min.js' charset='utf-8'></script>
<script type='text/javascript' src='../../../js/common.js' charset='utf-8'></script>
<script type='text/javascript' src='../../../js/component.js' charset='utf-8'></script>
<script>
    var vuePage = new Vue({
        el: '#page-monitor',
        data: {
            dialogFormVisible: false,
            formLabelWidth: '120px',
            currentPage: 1,
            tableData: [],
            dialogFormVisible: false,
            dialogcheckVisible: false,
            dialogcheckdataVisible: false,
            param: {
                onePrincipal: '',
                onePhone: '',
                oneVicePrincipal: '',
                oneVicePhone: '',
                oneSafeOfficer: '',
                oneSafeMajorNumber: '',
                oneSafeAndNumber: '',
                oneSafeClassNumber: '',
                oneSafeEachClassNumber: '',

                twoTeacherNumber: '',
                twoStudentNumber: '',
                twoClassNumber: '',
                threeFireHydrant: '',
                threeFireExtinguisher: '',
                threeFireLamp: '',
                threeFireTitle: '',
                threeFireOther: '',
                fourOnQualified: '',
                fourQualified: '',
                fourEmploy: '',
                fourNumber: '',
                fivePoliceStick: '',
                fiveFlashlight: '',
                fiveTearAgent: '',
                fiveSteelFork: '',
                fiveHelmet: '',
                fiveShield: '',
                fiveVest: '',
                fiveGlove: '',
                fiveSprays: '',
                fiveOther: '',
                sixBall: '',
                sixGun: '',
                sixProbe: '',
                sixIs110: '',
                sixOther: '',
                sevenIsUse: '',
                sevenEachMonthAfewVerse: '',
                sevenBookVer: '',
                sevenBookNumber: '',
                sevenTeacher: '',
                eightDrillNumber: '',
                eightDrillTime1: '',
                eightDrillTime2: '',
                eightDrillTime3: '',
                eightDrillTime4: '',
                eightDrillTime5: '',
            },
            checkDatalist: {},
            checkparam: {
                deviceId: '',
                projectNo: '',
                checkResult: '',
                checkTime: ''
            },
            pagesize: 10,
            pageno: 1,
            totalCount: 0,

            checkDatalist: {},
            checkpagesize: 10,
            checkpageno: 1,
            checktotalCount: 0,
            deviceId: '',
            tableData: [],
            projectNo: '',
            deviceName: '',
            useNo: '',
            registerNo: '',
            model: '',
            checkState: '',
            deviceNo: '',
            editMod: false,
            Chargerlist: [],
            checkStateData: [{Name: '所有', Id: -1}, {Name: '已检测', Id: 1}, {Name: '未检测', Id: 0}]
        },
        created: function () {
            $('.page').show();
            // HttpUtil.get('User/Child').success((r) => {
            //     if (r.state == 0) {
            //         vuePage.Chargerlist = r.data;
            //     } else {
            //         vuePage.$message({type: 'error', message: '修改失败'})
            //     }
            // })
            // SiteConfig.account.projiectNo
            this.loadData();
        },
        methods: {
            checkdata(Id) {
                if (!Id) {
                    this.$message({type: 'error', message: 'ID不能为空'});
                    return;
                } else {
                    this.deviceId = Id;
                }
                var param = {};
                param.pageno = this.checkpageno;
                param.pagesize = this.checkpagesize;
                // d6da8ca9ace4449dbb6795af03937154
                // SiteConfig.account.projectNo
                param.projectNo = SiteConfig.account.projectNo;
                param.deviceId = this.deviceId;
                HttpUtil.get('Devicecheckbill/List', param).success((res) => {
                    vuePage.checkDatalist = res.data;
                    vuePage.checktotalCount = res.total;
                    this.dialogcheckdataVisible = true;
                });
            },
            addcheck(Id) {
                this.dialogcheckVisible = true;
                if (!Id) {
                    this.$message({type: 'error', message: 'ID不能为空'});
                    return;
                }
                this.checkparam.deviceId = Id;
            },
            editClick(row) {
                this.param = row;
                this.param.chargeBy = parseInt(this.param.chargeBy);
                this.dialogFormVisible = true;
                this.editMod = true;
            },
            loadData: function () {
                var param = {};
                if (SiteConfig.account.projectNo)
                    param.projectNo = SiteConfig.account.projectNo;
                HttpUtil.get('SchoolBaseInfo/List', param).success((res) => {
                    var obj = res.data[0];
                    obj.eightDrillTime1 = obj.eightDrillTime1.substr(0, 10);
                    obj.eightDrillTime2 = obj.eightDrillTime2.substr(0, 10);
                    obj.eightDrillTime3 = obj.eightDrillTime3.substr(0, 10);
                    obj.eightDrillTime4 = obj.eightDrillTime4.substr(0, 10);
                    obj.eightDrillTime5 = obj.eightDrillTime5.substr(0, 10);
                    vuePage.tableData = obj;
                    // vuePage.totalCount = res.total;
                });
            },
            addBtn: function () {
                this.editMod = false;
                // var obj = this.param;
                // for (key in obj) {
                //     this.param[key] = '';
                // }
                // this.form.reset()
                // this.param = [];
                this.param = Object.assign(this.param, this.tableData);
                // this.param = this.tableData;
                this.dialogFormVisible = true;
                // this.loadData();
            },
            submitCheck() {
                if (!this.checkparam.checkResult) {
                    this.$message({type: 'error', message: '检测结果不能为空'})
                    return;
                }
                if (!this.checkparam.checkTime) {
                    this.$message({type: 'error', message: '检测时间不能为空'})
                    return;
                }
                // SiteConfig.account.projectNo     d6da8ca9ace4449dbb6795af03937154
                this.checkparam.projectNo = SiteConfig.account.projectNo;

                HttpUtil.get('Devicecheckbill/Add', this.checkparam).success((r) => {
                    if (r.state == 0) {
                        this.$message({
                            message: '添加成功！',
                            type: 'success'
                        });
                        vuePage.loadData();
                        setTimeout(function () {
                            vuePage.dialogcheckVisible = false;
                        }, 1000)
                    } else {
                        vuePage.$message({type: 'error', message: '添加失败'})
                    }
                })

            },
            submitClick() {
                if (!this.param.onePrincipal) {
                    this.$message({type: 'error', message: '校长不能为空'})
                    return;
                }
                if (!this.param.onePhone) {
                    this.$message({type: 'error', message: '校长联系电话不能为空'})
                    return;
                }
                if (!this.param.oneVicePrincipal) {
                    this.$message({type: 'error', message: '主管副校长不能为空'})
                    return;
                }

                if (!this.param.oneVicePhone) {
                    this.$message({type: 'error', message: '主管副校长联系电话不能为空'})
                    return;
                }
                if (!this.param.oneSafeOfficer) {
                    this.$message({type: 'error', message: '平安办主任不能为空'})
                    return;
                }
                if (!this.param.oneSafeMajorNumber) {
                    this.$message({type: 'error', message: '平安办专人不能为空'})
                    return;
                }
                if (!this.param.oneSafeAndNumber) {
                    this.$message({type: 'error', message: '平安办兼职不能为空'})
                    return;
                }
                if (!this.param.oneSafeClassNumber) {
                    this.$message({type: 'error', message: '班级安全员不能为空'})
                    return;
                }
                if (!this.param.oneSafeEachClassNumber) {
                    this.$message({type: 'error', message: '每班安全员不能为空'})
                    return;
                }


                if (!this.param.twoTeacherNumber) {
                    this.$message({type: 'error', message: '教职工人数不能为空'})
                    return;
                }
                if (!this.param.twoStudentNumber) {
                    this.$message({type: 'error', message: '学生人数不能为空'})
                    return;
                }
                if (!this.param.twoClassNumber) {
                    this.$message({type: 'error', message: '班级数不能为空'})
                    return;
                }

                if (!this.param.threeFireHydrant) {
                    this.$message({type: 'error', message: '消防栓数量不能为空'})
                    return;
                }
                if (!this.param.threeFireExtinguisher) {
                    this.$message({type: 'error', message: '灭火器数量不能为空'})
                    return;
                }
                if (!this.param.threeFireLamp) {
                    this.$message({type: 'error', message: '应急灯数量不能为空'})
                    return;
                }
                if (!this.param.threeFireTitle) {
                    this.$message({type: 'error', message: '疏散标志数量不能为空'})
                    return;
                }

                if (!this.param.fourOnQualified) {
                    this.$message({type: 'error', message: '保安公司未达标人数不能为空'})
                    return;
                }
                if (!this.param.fourQualified) {
                    this.$message({type: 'error', message: '保安公司达标人数不能为空'})
                    return;
                }
                if (!this.param.fourEmploy) {
                    this.$message({type: 'error', message: '保安公司自聘人数不能为空'})
                    return;
                }
                if (!this.param.fourNumber) {
                    this.$message({type: 'error', message: '保安公司总人数不能为空'})
                    return;
                }

                if (!this.param.fivePoliceStick) {
                    this.$message({type: 'error', message: '警棒数量不能为空'})
                    return;
                }
                if (!this.param.fiveFlashlight) {
                    this.$message({type: 'error', message: '强光手电数量不能为空'})
                    return;
                }
                if (!this.param.fiveTearAgent) {
                    this.$message({type: 'error', message: '警用催泪剂数量不能为空'})
                    return;
                }
                if (!this.param.fiveSteelFork) {
                    this.$message({type: 'error', message: '钢叉数量不能为空'})
                    return;
                }
                if (!this.param.fiveHelmet) {
                    this.$message({type: 'error', message: '防暴头盔数量不能为空'})
                    return;
                }
                if (!this.param.fiveShield) {
                    this.$message({type: 'error', message: '防护盾牌数量不能为空'})
                    return;
                }
                if (!this.param.fiveVest) {
                    this.$message({type: 'error', message: '防刺背心数量不能为空'})
                    return;
                }
                if (!this.param.fiveGlove) {
                    this.$message({type: 'error', message: '防割手套数量不能为空'})
                    return;
                }
                if (!this.param.fiveSprays) {
                    this.$message({type: 'error', message: '自卫喷雾剂数量不能为空'})
                    return;
                }

                if (!this.param.sixBall) {
                    this.$message({type: 'error', message: '球机数量不能为空'})
                    return;
                }
                if (!this.param.sixGun) {
                    this.$message({type: 'error', message: '枪机数量不能为空'})
                    return;
                }
                if (!this.param.sixProbe) {
                    this.$message({type: 'error', message: '红外探头数量不能为空'})
                    return;
                }
                if (!this.param.sixIs110) {
                    this.$message({type: 'error', message: '是否110联网不能为空'})
                    return;
                }
                if (!this.param.sevenIsUse) {
                    this.$message({type: 'error', message: '是否开设不能为空'})
                    return;
                }
                if (!this.param.sevenEachMonthAfewVerse) {
                    this.$message({type: 'error', message: '每月几节不能为空'})
                    return;
                }
                if (!this.param.sevenBookVer) {
                    this.$message({type: 'error', message: '教材版本不能为空'})
                    return;
                }
                if (!this.param.sevenBookNumber) {
                    this.$message({type: 'error', message: '教材数量不能为空'})
                    return;
                }
                if (!this.param.sevenTeacher) {
                    this.$message({type: 'error', message: '专兼职教师人数不能为空'})
                    return;
                }

                if (!this.param.eightDrillNumber) {
                    this.$message({type: 'error', message: '年度疏散演练情况数量不能为空'})
                    return;
                }

                // if (vuePage.editMod) {
                //     HttpUtil.get('Equipment/Update', this.param).success((r) => {
                //         if (r.state == 0) {
                //             this.totalCount = r.total;
                //             this.$message({
                //                 message: '修改成功！',
                //                 type: 'success'
                //             });
                //             vuePage.loadData();
                //             setTimeout(function () {
                //                 vuePage.dialogFormVisible = false;
                //             }, 1000)
                //
                //         } else {
                //             vuePage.$message({type: 'error', message: '修改失败'})
                //         }
                //     })
                // } else {
                this.param.projectNo = SiteConfig.account.projectNo;
                HttpUtil.get('SchoolBaseInfo/Add', this.param).success((r) => {
                    if (r.state == 0) {
                        this.totalCount = r.total;
                        this.$message({
                            message: '填报成功！',
                            type: 'success'
                        });
                        vuePage.loadData();
                        setTimeout(function () {
                            vuePage.dialogFormVisible = false;
                        }, 1000)
                    } else {
                        vuePage.$message({type: 'error', message: '填报失败'})
                    }
                })
                // }
            },
            removeItem: function (id) {
                if (!id) {
                    this.$message({
                        type: 'info',
                        message: 'id为空'
                    });
                    return;
                }
                this.$confirm('此操作将永久删除, 是否继续?', '提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning',
                    center: true
                }).then(() => {
                    HttpUtil.get('Equipment/Delete', {Id: id}).success((r) => {
                        if (r.state == 0) {
                            vuePage.$message({
                                type: 'success',
                                message: '删除成功!'
                            });
                            vuePage.loadData();
                        } else {
                            vuePage.$message.error('删除失败!');
                        }
                    })
                }).catch(() => {
                    this.$message({
                        type: 'info',
                        message: '已取消删除'
                    });
                });

            },
            onCheckChangePage(page) {
                this.checkpageno = page;
                this.checkdata(this.deviceId);
            },
            onChangePage(page) {
                this.pageno = page;
                this.loadData();
            },
            search: function () {
                this.loadData();
            },
            onCheckbox: function (row) {
            },
            export_report: function () {
                HttpUtil.get('Equipment/ExportEquipment', {projectNo: SiteConfig.account.projectNo}).success((res) => {
                    this.$message.success('导出成功');
                    window.location = SiteConfig.webApiset + res.data;
                })
            }
        },

        mounted: function () {

        }
    });
</script>
</body>
</html>
